const { StorageUtil } = require('./storage_util');

const STORAGE_KEYS = {
  MBTI_PROGRESS: 'mbti_test_progress',
  USER_INFO: 'user_info',
  // 添加其他键名...
};

class StorageCollection {
  static getMBTIProgress() {
    return StorageUtil.get(STORAGE_KEYS.MBTI_PROGRESS);
  }

  static setMBTIProgress(data) {
    StorageUtil.set(STORAGE_KEYS.MBTI_PROGRESS, data);
  }

  static clearMBTIProgress() {
    StorageUtil.remove(STORAGE_KEYS.MBTI_PROGRESS);
  }
}

module.exports = {
  STORAGE_KEYS,
  StorageCollection
};